#include "stdafx.h"
#include "WorkerData.hpp"

#include "Namespaces.h"

WorkerData::WorkerData(object ^Data, ManualResetEvent ^Event) {

	this->m_Data = Data;
	this->m_Event = Event;

}

void WorkerData::TaskReady(void) {

	this->m_Event->Reset();

}

void WorkerData::TaskComplete(void) {

	this->m_Event->Set();

}

object ^WorkerData::Data::get(void) {

	return this->m_Data;

}

ManualResetEvent ^WorkerData::Event::get(void) {

	return this->m_Event;

}